//
// Created by kaifa01 on 2021/6/1.
//

#ifndef STUDY_SCOPE_VAL_H//防止重复编译
#define STUDY_SCOPE_VAL_H

int g = 5;
void test_abc() {
    /* 局部变量声明 */
    int a, b;
    /* 实际初始化 */
    a = 10;
    b = 20;
    printf ("全局变量 g = %d\n", g);
    g = a + b;
    printf ("局部变量 a = %d,b = %d\n", a, b);
    printf ("value of a = %d, b = %d and g = %d\n", a, b, g);
}

//宏定义
#define N 1000
#define NF(x) x*x

#endif //STUDY_SCOPE_VAL_H

